package com.zys.background.common.constant;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;

/**
 * @author zys
 * @since 2022-11-21
 */
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class CacheConstants {
  /**
   * 验证码前缀
   */
  public static final String CAPTCHA_PREFIX = "captcha:";

  /**
   * 验证码有效期。单位：秒
   */
  public static final Long CAPTCHA_TIME_OUT = 60L;

  /**
   * Token 前缀
   */
  public static final String TOKEN = "token";

  /**
   * 菜单缓存 key
   */
  public static final String CACHE_MENU = "cache_menu";

  /**
   * 用户缓存 key
   */
  public static final String CACHE_USER = "cache_user";
}
